package cn.telling.product.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import cn.telling.product.dao.ISupplyDao;
import cn.telling.product.service.ISupplyService;
import cn.telling.product.vo.SupplyVo;

/**
 * 
 * @ClassName: SupplyServiceImpl 
 * @Description: 供应商业务服务接口的实现
 * @author 陈赟 
 * @date 2015年6月17日 上午11:19:29 
 *
 */
@Service("supplyService")
public class SupplyServiceImpl implements ISupplyService {
    
    @Autowired
    @Qualifier("supplyDao")
    private ISupplyDao supplyDao;

    @Override
    public SupplyVo findSupplyByUserId(String userId) {
        return supplyDao.findSupplyByUserId(userId);
    }

    @Override
    public SupplyVo findSupplyBySupplyId(String supplyId) {
        return supplyDao.findSupplyBySupplyId(supplyId);
    }

}
